//
//  recordManager.h
//  tcpoctest
//
//  Created by gump on 11/26/12.
//  Copyright (c) 2012 gump. All rights reserved.
//

#import <AVFoundation/AVFoundation.h>
#import <AudioToolbox/AudioToolbox.h>
#import <CoreAudio/CoreAudioTypes.h>

@interface recordManager : NSObject
{
    AVAudioRecorder     *recorder;
    int                 recordTimer;
    int                 recordstate;
    AudioFileTypeID     fileFormat;
    double              lowPassResults;
    float               startRecordTime;
}

@property(nonatomic,strong) NSURL               *recordedFile;

+(recordManager*)shareControl;

-(void)startRecord;
-(void)startAudioR;
-(void)stopRecord;
-(void)tick;
-(void)stopAudioR;
-(double)updateRecordPower;
-(double)GetRecordLength;

@end
